<?php
	require_once '../../class/Include.php';
	session_start();
	$user = User::get($_SESSION['userId']);
	if (is_null($user) || (!isset($_SESSION['admin']) && !$_SESSION['admin'])){
		$_SESSION['admin'] = 0;
		header('Location: ../../index.php');
	}		
?>
